]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Use icon-size instead of width/height for system actions
authorJonas Dreßler <verdre@v0yd.nl>
Tue, 16 Feb 2021 13:17:55 +0000 (14:17 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 16 Feb 2021 13:56:20 +0000 (13:56 +0000)
When creating an icon for the system actions search provider, set the
icon size using StIcons own icon-size property instead of ClutterActors
width and height property. That ensures the scale factor is applied and
the icon will be properly scaled on hiDPI screens.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1686>

js/ui/appDisplay.js

index 72e0e53791d218c7f9c908d919f3ab8e9b7b4d7a..dee7df3002aef5d8f06189aaf37dbd2398aa3066 100644 (file)
@@ -1432,8 +1432,7 @@ var AppSearchProvider = class AppSearchProvider {
 
                 const createIcon = size => new St.Icon({
                     icon_name: iconName,
-                    width: size,
-                    height: size,
+                    icon_size: size,
                     style_class: 'system-action-icon',
                 });